<!-- Recently Added Blog Posts Starts -->
<div class="blog-posts-wrap">

	<div class="some_blank_space"></div>

	<div class="content-skeleton">

			<!-- Recent Posts List -->
			<ul class="blog-posts-list standard-blog">

				<!-- A Sticky Post -->
				<li class="blog-posts-item sticky">
					<!-- <span class="sticky-icon"></span> -->

					<?php foreach ($get_article_views as $key => $get_article_view) { ?>
					<div class="post-header">
						<h3 class="post-title"><?php echo $get_article_view->judul_news; ?></h3>
						<span class="post-date"><strong><?php echo $get_article_view->username; ?></strong> - <?php echo $get_article_view->date_update; ?></span>
					</div>
					<div class="post-thumbnail">
						<img id="post_thumb" src="<?php echo base_url() . $get_article_view->url_gambar_news; ?>" alt="" />
					</div>
					<div class="post-summary">
						<?php echo $get_article_view->content_news; ?>
					</div>
					<?php } ?>
				</li>					
			</ul>
		

			<!-- Comments Area -->
			<div id="comments" class="comments-area">
				<?php if($get_row_comment>0){ ?>
				<h4 class="comments-title">Comments</h4>

				<!-- Comment List Starts -->
				<ol class="commentlist">
					<?php foreach ($get_comments as $key => $get_comment) { ?>
					<li id="li-comment-1">
						<div class="comment">
							<div class="comment-author-avatar">
								<?php
								$d = $this->db->query("select * from member where username_member='$get_comment->name'");
								$q = $d->row();

								if(isset($q->foto_member) && $q->foto_member!=''){
								?>
								<img src="<?php echo base_url() . $q->foto_member; ?>" class="avatar" alt="" />
								<?php
								} else {
								?>
								<img src="<?php echo base_url(); ?>assets/theme1/images/logo-square.png" class="avatar" alt="" />
								<?php	
								}

								?>
							</div>
							<div class="comment-content">
								<h5 class="comment_author"><?php echo $get_comment->name; ?></h5>
								<span class="comment-time"><?php echo $get_comment->date_comment; ?></span>
								<p>
								<?php echo $get_comment->content; ?>	
								</p>
							</div>
						</div>
					</li>
					<?php } ?>
				</ol><!-- /.Comment List Ends -->
				<?php } ?>

				<!-- Respond/Comment Form -->
				<div id="respond" class="comment-respond">
					<h4 class="comment-reply-title">Leave a Reply</h4>
					<?php echo $benar; ?>
					<form method="post" id="commentform" />

					<?php
					$logged_in = $this->session->userdata('logged_in');
		            $nama=$logged_in['username_member'];
		            if(!isset($logged_in) || $logged_in != true){
					?>
						<p class="comment-form-author">
							<label for="author">Name <span class="required">*</span></label><br /> 
							<input id="author" name="name" placeholder="Name" type="text" size="30" aria-required='true' />
						</p>
						<p class="comment-form-email">
							<label for="email">Email <span class="required">*</span></label><br />
							<input id="email" name="email" type="text" value="" size="30" aria-required='true' />
						</p>
						<p class="comment-form-url">
							<label for="url">Website</label><br />
							<input id="url" name="url" type="text" value="" size="30" />
						</p>
					<?php
					} else {
					?>
					
						<label for="author">Username : <b><?php echo $nama; ?></b></label><br />
						<input name="name" type="hidden" value="<?php echo $nama; ?>" />
						<input name="email" type="hidden" value="" />
						<input name="url" type="hidden" value="" />
					<?php } ?>
					<p class="comment-form-comment">
						<label for="comment">Comment</label> 
						<textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea>
					</p>						
					<p>
						<label>Captcha:</label><br>
           				<?php echo $recaptcha_html; ?>
					</p>						
					<p class="form-submit">							
						<input name="submit" type="submit" id="submit" value="Post Comment" />
						<input type='hidden' name='comment_post_ID' value='94' id='comment_post_ID' />
						<input type='hidden' name='comment_parent' id='comment_parent' value='0' />
					</p>

				</form>

			</div>
			<!-- /respond comment area ends -->

			<div class="some_blank_space"></div>

		</div>			


	<!-- Clear Floating Element -->
	<div class="clear"></div>

</div><!-- /.content-skeleton -->			
</div>	
<!-- Recently Added Blog Posts Ends -->